/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hoaptt.helper;

import com.hoaptt.pieces.Piece;

/**
 *
 * @author ThuHoa
 */
public class ValidateSwapPiece {

    private Piece p1;
    private Piece p2;

    public enum NamePiece {
        advisor, cannon, chariot, default1, elephant, general, horse, solider
    }

    public ValidateSwapPiece(Piece p1, Piece p2) {
        this.p1 = p1;
        this.p2 = p2;
    }

    public Piece getP1() {
        return p1;
    }

    public void setP1(Piece p1) {
        this.p1 = p1;
    }

    public Piece getP2() {
        return p2;
    }

    public void setP2(Piece p2) {
        this.p2 = p2;
    }

    public boolean checkValidate() {
        if (p1.getAlias().equals(NamePiece.advisor)){
            System.out.println("this is advisor");
        }
        return true;
    }
}
